package com.blog.service;

import java.util.List;
import java.util.Map;

import com.blog.entity.Blog;

public interface BlogService {

	public List<Blog> countList();
	
	public List<Blog> list(Map<String, Object> map);
	
	public long getTotal(Map<String,Object> map);	
	
	public Blog findById(Integer id);
	
	public Integer update(Blog blog);
	
	public Blog getLastBlog(Integer id);
	
	public Blog getNextBlog(Integer id);
	
	public Integer add(Blog blog);
	
	public Integer delete(Integer id);
	
	public Integer getBlogByTypeId(Integer typeId);
}
